<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;

        }

        .box {
            position: relative;
            width: 150px;
            height: 150px;
        }
        .box>img {
            position: absolute;
            top: 0;
            left: 0;
            width: 150px;
            height: 150px;
        }
        img {
            border: 1px solid rgb(24, 22, 22);
            margin-left: 100px;
            width: 150px;
            height: 150px;
        }
        .box>input {
            opacity: 0;
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="./+.png" alt="">
        <input type="file">
    </div>
    <script>
        $(".box > img").click(function () {
            $(this).next().click();
        })
        var arr = [];
        $("input").change(function () {
            var url = URL.createObjectURL(this.files[0]);
            arr.push(url);
            $(`<img src='${url}'/>`).insertBefore(`.box`);
            if (arr.length == 9) {
                $(".box").hide();
            }
        })
    </script>
</body>
</html>